package com.example.rbac.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.rbac.model.Permission;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface PermissionMapper extends BaseMapper<Permission> {
    
    // 查询所有接口权限信息，用于项目启动时初始化
    List<Permission> selectAllPermissions();
    
    // 根据角色ID查询权限列表
    List<Permission> selectPermissionsByRoleId(Long roleId);
}